package io.renren.modules.news.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;


/**
 * 新闻版块
 * 评论的实体类
 */
public class Comment {
    private Long commentId; //评论的id
    private String userName;  //评论人的昵称
    private String content;    //评论的内容
    private String userHeadImage;  //评论人的头像
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;  //评论时间
    private Long newsId;  //评论所属新闻的id
    private  int isDelete;  //评论是否被删除 0表示已删除 1表示未删除
    private String token;  //唯一属性
    private Long userId; //评论人的ID
    private Long likeCount;  //点赞量
    private byte[] userNameB;
    private byte[] contentB;


    public byte[] getUserNameB() {
        return userNameB;
    }

    public void setUserNameB(byte[] userNameB) {
        this.userNameB = userNameB;
    }

    public byte[] getContentB() {
        return contentB;
    }

    public void setContentB(byte[] contentB) {
        this.contentB = contentB;
    }

    public Long getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(Long likeCount) {
        this.likeCount = likeCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getCommentId() {
        return commentId;
    }

    public void setCommentId(Long commentId) {
        this.commentId = commentId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserHeadImage() {
        return userHeadImage;
    }

    public void setUserHeadImage(String userHeadImage) {
        this.userHeadImage = userHeadImage;
    }

    public Long getNewsId() {
        return newsId;
    }

    public void setNewsId(Long newsId) {
        this.newsId = newsId;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }
}
